<template>
  <div>
    <ul v-for="(item, index) in arr" :key="index">
      <li>{{ item }}</li>
    </ul>
    <button @click="changeFn">走一走</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      arr: ["帅哥", "美女", "走一走"],
    };
  },
  methods: {
    changeFn() {
      const a = this.arr.shift();
      this.arr.push(a);
    },
  },
};
</script>

<style>
</style>